package com.ouc.openplatform.ouc.authManage.service;
import io.terminus.pampas.client.Export;

import java.util.List;

import com.ouc.openplatform.ouc.authManage.dto.NJ_AuthorityInfoDTO;
import com.ouc.openplatform.ouc.authManage.model.NJ_AuthorityInfo;
import com.ouc.openplatform.pojo.EUDataGridResult;

public interface NJ_ClientAuthorityInfoService {

	//1.保存权限信息-----sxl
	@Export(paramNames = {"nj_authorityinfoDTO"})
	public int saveAuthorityInfo(NJ_AuthorityInfoDTO nj_authorityinfoDTO);
	//2.删除权限信息-----sxl
	@Export(paramNames = {"id"})
	public int deleteAuthorityInfo(int id);
	//3.修改权限信息-----sxl
	@Export(paramNames = {"nj_authorityinfoDTO"})
	public int updateAuthorityInfo(NJ_AuthorityInfoDTO nj_authorityinfoDTO);
	
	//4.根据条件获取权限信息(DataGrid专用)-----sxl
	@Export(paramNames = {"nj_authorityinfoDTO","page","rows"})
	public EUDataGridResult getAllAuthorityInfo_DataGrid(NJ_AuthorityInfoDTO nj_authorityinfoDTO,int page, int rows);
	//4.获取所有的权限信息(treegrid专用)-----sxl
	@Export(paramNames = {"authorityinfoDTO"})
	public List<NJ_AuthorityInfoDTO> getAllAuthorityInfo_Treegrid(NJ_AuthorityInfoDTO authorityinfoDTO);
	//5.获取所有的权限信息-----sxl
	@Export(paramNames = {"authorityinfo"})
	public List<NJ_AuthorityInfo> getAuthorityInfo(NJ_AuthorityInfo authorityinfo);
	
	//根据父级id获取所有权限信息-------sxl
	@Export(paramNames = {"parentid"})
	public List<NJ_AuthorityInfoDTO> getAllAuthorityInfoByParentid(int parentid);
}
